package com.example.mymarket.Menu;

public class LeftMenu {
    private int id;
    private String name;
    //所有的都默认没有被选中
    //后端接口的时候,有可能没有一个`状态`的
    //字段,我们自己加进去,不影响
    private Boolean isChecked = false;

    public LeftMenu() {
    }

    public LeftMenu(int id, String name, Boolean isChecked) {
        this.id = id;
        this.name = name;
        this.isChecked = isChecked;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getChecked() {
        return isChecked;
    }

    public void setChecked(Boolean checked) {
        isChecked = checked;
    }
}
